# Basile Clout
# May 2007

# GNU Automake for PaGrid 
# Pagrid executable


# C compiler flags 
AM_CFLAGS=-O3 -Wall
# preprocessor flags
AM_CPPFLAGS=-I$(srcdir)/../Lib -DPAGRID



# pagrid
bin_PROGRAMS = pagrid
pagrid_SOURCES = pagrid.c mlp.c coarsen.c projback.c match.c execrefine.c\
execrefine_core.c execrefine_gain.c execrefine_filters.c \
execrefine_undo.c execrefine_ref.c\
contract.c initial.c util.c \
$(srcdir)/../MWM/wmatch.c $(srcdir)/../MWM/glib.c grid_func.c  graph_func.c
# Links
pagrid_LDADD = $(MATH_LIBS) $(srcdir)/../Lib/libpagrid.a
pagrid_LDFLAGS = -pg
